package deng.ejbtx.jpa;

import javax.persistence.Id;
import javax.persistence.Table;

/** 
 * A demo model representing each entry inside the JBOSS_HOME/jar-versions.xml file.
 * This model is used just so we have some data entry available. Nothing useful in particular
 * by itself other than demonstrating the JPA usage.
 *  
 * To create the SQL Table in HSQLDB, run this code:

create table jar_versions (
	id int identity,
	name varchar(128) not null,
	specVersion varchar(128) null,
	specVendor varchar(128) null,
	specTitle varchar(128) null, 
	implVersion varchar(128) null,
	implVendor varchar(128) null,
	implTitle varchar(128) null,
	implVendorID varchar(128) null,
	implURL varchar(128) null,
	sealed varchar(128) null,
	md5Digest varchar(128) null
) ;
 *
 * */
@Table(name="jar_versions")
public class JarVersion {
	@Id
	private int id;
	private String name;
	private String specVersion;
	private String specVendor;
	private String specTitle;
	private String implVersion;
	private String implVendor;
	private String implTitle;
	private String implVendorID;
	private String implURL;
	private String sealed;
	private String md5Digest;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getSpecVersion() {
		return specVersion;
	}
	public void setSpecVersion(String specVersion) {
		this.specVersion = specVersion;
	}
	public String getSpecVendor() {
		return specVendor;
	}
	public void setSpecVendor(String specVendor) {
		this.specVendor = specVendor;
	}
	public String getSpecTitle() {
		return specTitle;
	}
	public void setSpecTitle(String specTitle) {
		this.specTitle = specTitle;
	}
	public String getImplVersion() {
		return implVersion;
	}
	public void setImplVersion(String implVersion) {
		this.implVersion = implVersion;
	}
	public String getImplVendor() {
		return implVendor;
	}
	public void setImplVendor(String implVendor) {
		this.implVendor = implVendor;
	}
	public String getImplTitle() {
		return implTitle;
	}
	public void setImplTitle(String implTitle) {
		this.implTitle = implTitle;
	}
	public String getImplVendorID() {
		return implVendorID;
	}
	public void setImplVendorID(String implVendorID) {
		this.implVendorID = implVendorID;
	}
	public String getImplURL() {
		return implURL;
	}
	public void setImplURL(String implURL) {
		this.implURL = implURL;
	}
	public String getSealed() {
		return sealed;
	}
	public void setSealed(String sealed) {
		this.sealed = sealed;
	}
	public String getMd5Digest() {
		return md5Digest;
	}
	public void setMd5Digest(String md5Digest) {
		this.md5Digest = md5Digest;
	}	
}
